package com.sxjh.entity.result;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Finance3CbResult {

  @ApiModelProperty("数据ID，可能为空")
  private Integer id;

  @ApiModelProperty("公司名称")
  private String companyName;

  @ApiModelProperty("合同号")
  private String contractNo;

  @ApiModelProperty("车牌号")
  private String plateNumber;

  @ApiModelProperty("原发数量")
  private BigDecimal netWeight;

  @ApiModelProperty("实收数量")
  private BigDecimal weighbridgeWeight;

  @ApiModelProperty("结算单价")
  private BigDecimal settlementPrice;

  @ApiModelProperty("扣款单价")
  private BigDecimal settlementPriceMax;

  @ApiModelProperty("供货日期")
  private LocalDateTime factoryOutTime;

  @ApiModelProperty("每吨运费")
  private BigDecimal freight;

  @ApiModelProperty("金额")
  private BigDecimal money;

  @ApiModelProperty("吨数")
  private BigDecimal tunnage;

  @ApiModelProperty("扣款")
  private BigDecimal withhold;

  @ApiModelProperty("分析指标mg/kg")
  private BigDecimal water;

  @ApiModelProperty("水分扣重")
  private BigDecimal bearing;

  @ApiModelProperty("水费扣款")
  private BigDecimal waterWithhold;

  @ApiModelProperty("运费扣款")
  private BigDecimal freightWithhold;

  @ApiModelProperty("其他扣款")
  private BigDecimal otherWithhold;

  @ApiModelProperty("合计扣款")
  private BigDecimal sumWithhold;

  @ApiModelProperty("运杂费")
  private BigDecimal incidentals;

  @ApiModelProperty("总金额")
  private BigDecimal moneySum;

  @ApiModelProperty("数据类型，0|正常数据,1|被拆单的数据,2|拆单出来的数据")
  private Integer type;

  public BigDecimal getNetWeight() {
    if("".equals(netWeight)||netWeight==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return netWeight;
  }

  public BigDecimal getWeighbridgeWeight() {
    if("".equals(weighbridgeWeight)||weighbridgeWeight==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return weighbridgeWeight;
  }

  public BigDecimal getSettlementPrice() {
    if("".equals(settlementPrice)||settlementPrice==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPrice;
  }

  public BigDecimal getSettlementPriceMax() {
    if("".equals(settlementPriceMax)||settlementPriceMax==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPriceMax;
  }

  public BigDecimal getFreight() {
    if("".equals(freight)||freight==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return freight;
  }

  public BigDecimal getMoney() {
    if("".equals(money)||money==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return money;
  }

  public BigDecimal getTunnage() {
    if("".equals(tunnage)||tunnage==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return tunnage;
  }

  public BigDecimal getWithhold() {
    if("".equals(withhold)||withhold==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return withhold;
  }

  public BigDecimal getWater() {
    if("".equals(water)||water==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return water;
  }

  public BigDecimal getBearing() {
    if("".equals(bearing)||bearing==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return bearing;
  }

  public BigDecimal getWaterWithhold() {
    if("".equals(waterWithhold)||waterWithhold==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return waterWithhold;
  }

  public BigDecimal getFreightWithhold() {
    if("".equals(freightWithhold)||freightWithhold==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return freightWithhold;
  }

  public BigDecimal getOtherWithhold() {
    if("".equals(otherWithhold)||otherWithhold==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return otherWithhold;
  }

  public BigDecimal getSumWithhold() {
    if("".equals(sumWithhold)||sumWithhold==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return sumWithhold;
  }

  public BigDecimal getIncidentals() {
    if("".equals(incidentals)||incidentals==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return incidentals;
  }

  public BigDecimal getMoneySum() {
    if("".equals(moneySum)||moneySum==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return moneySum;
  }
}